package br.requisiteworks.util.validacao;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import javax.validation.Constraint;
import javax.validation.Payload;

/**
 * O campo anotado nao pode estar vazio nem conter mais que 128 caracteres
 * 
 * @author Mikhail Domanoski
 * 
 * @version 1, 28/05/2010
 *
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy=NomeValidator.class)
@Documented
public @interface Nome {
	String message() default "{validacao.nome}";
	
	Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
    
}
